package com.freemalll.merchant.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freemalll.merchant.domain.dto.CollaborationApplyDto;
import com.freemalll.merchant.domain.vo.CollaborationApplyStatisticsVo;
import com.freemalll.merchant.domain.vo.CollaborationApplyVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CollaborationApplyMapper {

    /**
     * 获取存量商户
     *
     * @return
     */

    List<Map<String, String>> getExistingMerchants(@Param("merId") String merId);


    /**
     * 分页查询合作申请
     *
     * @param page
     * @param dto
     * @return
     */
    Page<CollaborationApplyVo> pageSearch(Page page, @Param("dto") CollaborationApplyDto dto);

    /**
     * 统计页签数量
     *
     * @param dto
     * @return
     */
    CollaborationApplyStatisticsVo statistics(@Param("dto") CollaborationApplyDto dto);
}
